home *** CD-ROM | disk | FTP | other *** search
-
- Special notes on using the C version of FastKey.
-
- I have produced a C specific version of FastKey with the help of Curtis
- Keisler. It is patterned after the Turbo Pascal version and the name of
- the function calls are identical. The only change is that the boolean
- values returned in the C version are not true boolean values. The
- header file (FASTKEY.H) includes the definitions for the values of true
- and false. It is these values that are used in all functions that
- return a boolean value. Usage of the functions is detailed in the file
- FASTKEY.DOC. See this file for more information. Please note: The
- FASTKEY.OBJ distributed with the shareware version of Fastkey is using
- the SMALL memory model.
-
- In order to use these functions, the header file must be included. Just
- as in the Turbo Pascal version, FastKey must be initialized (see
- InstallFastKey) before it can be used. Also, before your program exits
- or you attempt to read the keyboard with the normal C input routines,
- FastKey must be removed (see UnInstallFastKey). The sample file
- C_DEMO.CPP shows an example of how to use FastKey in Turbo C.
-
- Oh, yeah, in Turbo C you will need to link in the object file for
- FastKey. In Turbo Pascal this is easy, just USES FASTKEY. Turbo C does
- not have any language specific method (at least that I know of (yet)).
- The easiest way to get FastKey to link into your C program is to create
- a project file. Within the project file, list your files that make up
- your program and the file FASTKEY.OBJ (or FASTKEY.CPP if you are a
- registered user). Now when you compile and link your program Turbo C
- will automatically link in the object file for FastKey. See the sample
- project file (C_DEMO.PRJ) for an example. It is also possible to link
- in the FastKey object file by hand. This should go something like the
- following. After you have produced the object file for your code, use
- TLINK to link the files together like this: TLINK
- MYPROG.OBJ+FASTKEY.OBJ+<any other .OBJ or .LIB files that you use>.
-
- I believe that the routines are very easy to use, however, if I can be
- of any assistance in resolving problems with the C version of FastKey do
- not hesitate to contact me (see FASTKEY.DOC for how to do that).
-
-
- -=- Steve Holley
- November 2, 1992
-
-
-
- Turbo Pascal & Turbo C are trademarks of Borland International.